HDFS-16242. JournalMetrics should add JournalId MetricTag.#3494
Merged
adamantal merged 6 commits intoapache:trunkfrom Oct 1, 2021
Merged
HDFS-16242. JournalMetrics should add JournalId MetricTag.#3494adamantal merged 6 commits intoapache:trunkfrom
adamantal merged 6 commits intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
Contributor
Author
|
cc @aajisaka @adamantal . Would you take some time to review this patch? Thank you. |
adamantal
reviewed
Sep 29, 2021
Contributor
adamantal
left a comment
There was a problem hiding this comment.
The implementation looks good. Two whitespace errors
...project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/server/JournalMetrics.java
Outdated
Show resolved
Hide resolved
...roject/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java
Show resolved
Hide resolved
1. remove empty space
Contributor
Author
|
Thank you for your review. @adamantal I commit it again to fix checkstyle error. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
Contributor
Author
|
The fail tests is due to java.lang.OutOfMemoryError. It is unrelated. |
adamantal
reviewed
Sep 30, 2021
...roject/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNode.java
Outdated
Show resolved
Hide resolved
adamantal
approved these changes
Sep 30, 2021
Contributor
adamantal
left a comment
There was a problem hiding this comment.
+1. Thanks! Will commit this if no objections.
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
Contributor
|
Merged to trunk, thanks for the contribution @Neilxzn |
HarshitGupta11
pushed a commit
to HarshitGupta11/hadoop
that referenced
this pull request
Nov 28, 2022
Contributed by Max Xie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
https://issues.apache.org/jira/browse/HDFS-16242
JournalMetrics should add JournalId MetricTag to distinguish different nameservice journal metrics when JournalNode use ganglia sink or prometheus sink.
JMX
Before this patch, journal' jmx :
After this patch, journal' jmx :
PrometheusSink
Before this patch, journal' prometheus export :
After this patch, journal' prometheus export :
How was this patch tested?
add test testJournalMetricTags
For code changes:
add JournalMetrics$getJournalId